package com.wr.common.core.constants;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 服务名称
 *
 * @author wr
 */
@Component
public class ServerNameConstants implements InitializingBean {

    @Value("${spring.application.name}")
    public String isService;

    public static String IS_SERVER;

    @Override
    public void afterPropertiesSet() {
        IS_SERVER = isService;
    }

    /**
     * 网关服务的serviceid
     */
    public static final String GATEWAY_SERVER = "wr-gateway";


    /**
     * 日志服务的serviceid
     */
    public static final String LOG_SERVER = "wr-modules-log";

    /**
     * 认证服务的serviceid
     */
    public static final String AUTH_SERVER = "wr-auth";

    /**
     * 文件服务的serviceid
     */
    public static final String FILE_SERVER = "wr-modules-file";

    /**
     * 管理服务的serviceid
     */
    public static final String SYSTEM_SERVER = "wr-modules-system";
}
